package com.ibeeking.gateway.cs;

import com.ibeeking.found.common.config.feign.FeignHystrixConcurrencyStrategy;
import com.ibeeking.found.common.config.feign.FeignRequestInterceptor;
import com.ibeeking.found.common.config.shutdown.ShutDownConfig;
import com.ibeeking.found.common.config.shutdown.ShutdownProConfig;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.FilterType;

/**
 * @ClassName UaaServer
 * @Description
 * @Author ibeeking
 * @Date 2020-10-10 9:57
 **/
@EnableDiscoveryClient
@EnableFeignClients(basePackages = {"com.ibeeking"})
@SpringBootApplication(scanBasePackages = {"com.ibeeking"})
@ComponentScan(value = "com.ibeeking", excludeFilters = @ComponentScan.Filter(type = FilterType.ASSIGNABLE_TYPE, classes = {ShutDownConfig.class, ShutdownProConfig.class, FeignRequestInterceptor.class, FeignHystrixConcurrencyStrategy.class}))
public class GatewayCSServer {
    public static void main(String[] args) {
        SpringApplication.run(GatewayCSServer.class, args);
    }
}
